import { axios } from '~/plugins/axios';

// 根据id获取用户详细信息
export const getUser = (params: string) => axios({
  method: 'get',
  url: `/UserController/detail/${params}`,
}) as Promise<any>;

// 新增用户 (编辑用户)
export const addUser = (params: any) => axios({
  method: 'post',
  url: '/UserController/insert',
  data: {
    ...params,
  },
}) as Promise<any>;
